﻿using Infrastructure.Models.Bases.Auditing;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.Models.Bases
{
    public class BaseFullAuditedEntity : BaseAuditedEntity, IFullAudited
    {
        /// <summary>
        /// 是否删除者
        /// 必填
        /// 默认值为0
        /// </summary>    
        [SugarColumn(IsNullable = true,DefaultValue ="0", ColumnDescription = "删除者Id")]
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 删除者Id
        /// 非必填
        /// </summary>     
        [SugarColumn(IsNullable = true, ColumnDescription = "删除者Id")]
        public long? DeleteUserId { get; set; }
        /// <summary>
        /// 删除时间
        /// 非必填
        /// </summary>     
        [SugarColumn(IsNullable = true, ColumnDescription = "删除时间")]
        public DateTime? DeleteTime { get; set; }

    }
}
